package com.ttg.common.utils;

import java.util.Random;

/**
 * Description： 随机数生成
 * Author: chenyou
 * Date: 2025/11/11 11:44
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
public class RandomInt {
    private static final Random RNG = new Random();
    private static final int MIN = 1;
    private static final int MAX = 1000;

    public static int nextInt1To1000() {
        return RNG.nextInt(MAX - MIN + 1) + MIN; // 1-1000（含边界）
    }

    public static void main(String[] args) {
        System.out.println(nextInt1To1000());
    }
}
